package com.zhenwei.zscm.model.vo.roleAuth;

import com.zhenwei.zscm.common.annotations.Insert;
import com.zhenwei.zscm.common.annotations.Update;
import com.zhenwei.zscm.model.vo.menu.MenuVO;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
public class RoleAuthVO {
    @NotEmpty(message = "角色不能为空", groups = {Insert.class, Update.class})
    private String role;
    @NotEmpty(message = "角色不能为空", groups = { Insert.class })
    private String roleName;
    private List<MenuVO> menus;
    private List<RoleAuthApiVO> apis;
}
